﻿<Window x:Class="Client.WinRegister"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Register" SizeToContent="WidthAndHeight" MinWidth="250" WindowStartupLocation="CenterScreen">
    <Grid Name="Grid_Root" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <TextBlock Text="Full Name" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" Margin="2"/>
        <TextBox Name="TextBox_SupplierName" Text="{Binding Path=SupplierName}" Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" Margin="2" />

        
        <TextBlock Text="Address" Grid.Column="2" Grid.Row="0" VerticalAlignment="Center" Margin="2"/>
        <TextBox Text="{Binding Path=SupplierAddress}" Grid.Column="3" Grid.Row="0" VerticalAlignment="Center" Margin="2"/>
        
        <TextBlock Text="Email" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" Margin="2"/>
        <TextBox Text="{Binding Path=SupplierEmail}" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Margin="2"/>

        <TextBlock Text="Phone" Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" Margin="2"/>
        <TextBox Text="{Binding Path=SupplierPhone}" Grid.Column="3" Grid.Row="1" VerticalAlignment="Center" Margin="2"/>
        
        <StackPanel Grid.ColumnSpan="4" Grid.Column="0" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
        <Button  Content="Register" Name="Button_Register" Margin="2"/>
        <Button  Content="Cancel" Name="Button_Cancel" Margin="2"/>
        <Button  Content="Close" Name="Button_Close" Margin="2"/>
        </StackPanel>
    </Grid>
</Window>
